]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
tests/shell: Also import built-in modules as modules
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 11 Jul 2023 14:43:02 +0000 (16:43 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 11 Jul 2023 14:44:11 +0000 (16:44 +0200)
The "System" module is provided by gjs itself, and also available
as module.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2836>

tests/shell/core.js

index 78d17d8c93e074023755f69ba036557f823a62ce..9339601049bb33358b46ffad44f46d28af3bef28 100644 (file)
@@ -1,7 +1,7 @@
 // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
 /* eslint camelcase: ["error", { properties: "never", allow: ["^script_", "^malloc", "^glx", "^clutter"] }] */
 
-const System = imports.system;
+import System from 'system';
 
 const Main = imports.ui.main;
 const Scripting = imports.ui.scripting;